package com.platform.core.entity;

import com.platform.comm.entity.BaseEntity;
import com.platform.comm.enums.YnEnum;
import com.platform.enums.DictType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能描述: 字典信息
 *
 * @author coder
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "ncloud_sys_dict_group")
public class SysDictGroup extends BaseEntity {

    private static final long serialVersionUID = -1103487634062382621L;
    /**
     * 字典组中文值
     */
    @Column(name = "group_name", length = 128)
    private String groupName;

    /**
     * 字典组值
     */
    @Column(name = "group_code", length = 50)
    private String groupCode;

    /**
     * 所属模块
     */
    @Column(name = "model", length = 100)
    private String model;

    /**
     * 信息状态
     */
    @Column(name = "delflag")
    private YnEnum delFlag;

    /**
     * 字典类型 0: 系统字典 1：扩展字段
     */
    @Column(name = "dict_type", length = 2)
    private DictType dictType;
}
